package com.miniapi.api.repositories;

import org.springframework.data.repository.CrudRepository;

import com.miniapi.api.entities.User;
import java.util.List;

public interface UserRepository extends CrudRepository<User, String> {
    User findByOpenId(String openId);

    List<User> findAllByIntroducer(String introducer);

    List<User> findAllByIntroducerAndFollowing(String introducer, boolean fllowing);

}
